package com.example.practise.response;

import io.swagger.annotations.ApiModelProperty;

/**
 * @author 86130
 */
public class APIRespVo<T> {

    @ApiModelProperty(value = "错误码", notes = "错误码")
    protected int code;

    @ApiModelProperty(value = "转化后错误信息", notes = "转化后错误信息")
    protected String msg="sucess";

    @ApiModelProperty(value = "返回数据", notes = "返回数据")
    protected T data;


    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }


    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }


    public APIRespVo() {
    }
}
